import pytest
def product(a, b):
    return a * b
class TestProduct:
    @pytest.mark.parametrize("a, b, expected", [(1, 2, 2), (2, 3, 6)])
    def test_product(self, a, b, expected):  # 这里改为 expected
        result = product(a, b)
        assert expected == result